<template>
  <div>
    <div class="login-page">
      <van-nav-bar
        title="登录"
        fixed
        placeholder
      />
      <div class="login-head">
        <h3>密码登录</h3>
        <a href="javascript:;">
          <span>短信验证码登录</span>
          <van-icon name="arrow" />
        </a>
      </div>
      <!-- form 表单 -->
      <van-form autocomplete="off">
        <van-field
          placeholder="请输入手机号"
          type="tel"
        />
        <van-field
          placeholder="请输入密码"
          type="password"
        />
        <div class="cp-cell">
          <van-checkbox v-model="agree">
            <span>我已同意</span>
            <a href="javascript:;">用户协议</a>
            <span>及</span>
            <a href="javascript:;">隐私条款</a>
          </van-checkbox>
        </div>
        <div class="cp-cell">
          <van-button
            block
            round
            type="primary"
          >登 录</van-button>
        </div>
        <div class="cp-cell">
          <a href="javascript:;">忘记密码？</a>
        </div>
      </van-form>
      <div class="login-other">
        <van-divider>第三方登录</van-divider>
        <div class="icon">
          <img
            src="@/assets/qq.svg"
            alt=""
          >
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      agree: true
    }
  }
}
</script>
<style lang="less" scoped>
.login {
  &-head {
    padding: 30px 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    line-height: 1;
    h3 {
      font-weight: normal;
      font-size: 24px;
    }
    a {
      font-size: 15px;
    }
  }
  &-other {
    margin-top: 60px;
    padding: 0 30px;
    .icon {
      display: flex;
      justify-content: center;
      img {
        width: 36px;
        height: 36px;
        padding: 4px;
      }
    }
  }
}
.van-form {
  padding: 0 14px;
  .cp-cell {
    height: 52px;
    line-height: 24px;
    padding: 14px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    .van-checkbox {
      a {
        color: var(--cp-primary);
        padding: 0 5px;
      }
    }
  }
}

a {
  color: var(--cp-text2)
}
</style>
